package com.dxy.demo.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description TODO
 * @Author dangxianyue
 * @Date 2024/4/9 11:45
 */
@Configuration
@ConditionalOnProperty(value = "test.enable", havingValue = "true", matchIfMissing = false)
public class SuperConfig {

    @Bean
    public A a() {
        return new A();
    }

    public static class A {}
}
